﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Kugar.Tools.SQLHelper.SQLGenerator.BllT4
{
    public  partial class BLLManagerGenerator
    { 
        
        public string ModuleBLLName { set; get; }

        public string ModuleName { set; get; }

        public DbTableStructInfo Table { set; get; }

        public bool IsSyncEnabled { set; get; }

        public bool IsAsyncEnabled { get; set; }

        public bool IsBuildGet { set; get; }

        public bool IsBuildAdd { set; get; }

        public bool IsBuildUpdate { set; get; }

        public bool IsBuildDelete { set; get; }

        public bool IsBuildList { set; get; }

        public bool IsBuildSetState { set; get; }

        public bool IsBuildExists { set; get; }

        public string Namespace { set; get; }

        public string DbModelNamespace { set; get; }

        private string FirstLetterLower(string name)
        {
            return T4SQLHelper.FirstLetterLower(name);
        }

        public string ConvertColumnTypeToNetType(DbTableInfo_Column type)
        {
            return T4SQLHelper.ConvertColumnTypeToNetType(type.ValueType, type.IsNullable);
        }
    }
}
